from rest_framework import serializers

from torts.models import Torts


class TortListSerializer(serializers.ModelSerializer):

    class Meta:
        model = Torts
        fields = ['id', 'staff', 'tort_content', 'tort_company_ip', 'tort_asin', 'old_asin', 'tort_image_url', 'deal_with_tort', ]


class TortAddSerializer(serializers.ModelSerializer):

    class Meta:
        model = Torts
        fields = ['staff', 'tort_content', 'tort_company_ip', 'tort_asin', 'old_asin', 'tort_image_url']


class UpdateTortInfoSerializer(serializers.ModelSerializer):

    class Meta:
        model = Torts
        fields = ['id', 'staff', 'tort_content', 'tort_company', 'tort_company_ip', 'tort_asin', 'old_asin', 'tort_image_url', 'deal_with_tort',]

